<template>
	<view class="">
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		<view class="" v-if="current==0">
			<tradeComponent :merchantNo="merchantNo"></tradeComponent>
		</view>
		<view class="" v-else>
			<infoComponent :merchantNo="merchantNo"></infoComponent>
		</view>

	</view>
</template>

<script>
	import tradeComponent from "./component/tradeComponent.vue";
	import infoComponent from "./component/infoComponent.vue";
	export default {
		components: {
			infoComponent,
			tradeComponent,

		},
		data() {
			return {
				merchantNo: "",
				list: [{
					name: '交易详情'
				}, {
					name: '信息详情'
				}],
				current: 0
			}
		},
		onLoad(options) {
			console.log("merchantNo" + JSON.stringify(options))
			this.merchantNo = options.merchantNo;

		},
		methods: {
			change(index) {
				this.current = index;
			}
		},
	}
</script>

<style>
</style>